package org.example.chapter8.protocol.response;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.chapter8.protocol.Packet;
import org.example.chapter8.session.Session;

import java.util.List;

import static org.example.chapter8.protocol.command.Command.LIST_GROUP_MEMBERS_RESPONSE;

@EqualsAndHashCode(callSuper = true)
@Data
public class ListGroupMembersResponsePacket extends Packet {

    private String groupId;

    private List<Session> sessionList;

    @Override
    public Byte getCommand() {
        return LIST_GROUP_MEMBERS_RESPONSE;
    }
}
